<template>
  <div class="c-tools-bar-wrapper">
    <div class="c-tools-bar-content">
      <Space>
        <slot></slot>
      </Space>
    </div>
    <div class="c-tools-bar-extra">
      <Space>
        <slot name="extra"></slot>
      </Space>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { Space } from '@arco-design/web-vue';
</script>

<style lang="less">
  .c-tools-bar-wrapper {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    width: 100%;
    .c-tools-bar-content {
      width: 100%;
      flex-shrink: 1;
    }
    .c-tools-bar-extra {
      flex-shrink: 0;
    }
  }
</style>
